// 消息接口定义
export interface Message {
  id: number;
  type: string; // 消息类型：系统通知、任务提醒、项目更新、缺陷提醒、团队协作
  title: string;
  content: string;
  time: string;
  read: boolean;
  important: boolean;
  sender?: string;
  relatedId?: number; // 相关实体ID（如任务ID、项目ID等）
  actionUrl?: string; // 操作链接
}

// 消息API请求参数接口
export interface GetMessagesParams {
  page?: number;
  pageSize?: number;
  type?: string;
  read?: boolean;
  important?: boolean;
  search?: string;
}

// 消息统计接口
export interface MessageStats {
  total: number;
  unread: number;
  important: number;
  byType: Record<string, number>;
}

// 批量操作请求接口
export interface BatchOperationRequest {
  messageIds: number[];
  operation: 'markAsRead' | 'markAsUnread' | 'delete';
}

// 消息设置接口
export interface MessageSettings {
  emailNotifications: boolean;
  pushNotifications: boolean;
  smsNotifications: boolean;
  desktopNotifications: boolean;
  quietHours: {
    enabled: boolean;
    startTime: string;
    endTime: string;
  };
  notificationTypes: {
    system: boolean;
    task: boolean;
    project: boolean;
    bug: boolean;
    team: boolean;
  };
}